package com.wendu.工厂模式;

public class Test {
    public static void main(String[] args) {
        Fruit fruit1 = Factory.createFruit(Factory.FACTORY_APPLE);
        Fruit fruit2 = Factory.createFruit(Factory.FACTORY_GRAPE);
        Fruit fruit3 = Factory.createFruit(Factory.FACTORY_STRAWBERRY);
        fruit1.show();
        fruit2.show();
        fruit3.show();
    }
}
